package org.ccc;

import java.util.Arrays;

public class T5 {
    String name = "李四";
    int[] ages = {10,20,30};
    public static void main(String[] args) {
        T5 t = new T5();
        t.change(t.name,t.ages);
        System.out.println(t.name);
        System.out.println(Arrays.toString(t.ages));
    }
    public void change(String n,int[] a){
        n = new String("张三丰");
        System.out.println(n);
        a[0] = 1000;
    }
}
